//
//  CommonTools.swift
//  8.31-WH微博
//
//  Created by 吴涵 on 15/9/8.
//  Copyright © 2015年 wuhan. All rights reserved.
//

import Foundation
let WHSwithRootControllerNotification = "WHSwithRootControllerNotification"

func printLog<T>(message: T,
    logError: Bool = false,
    file: String = __FILE__,
    method: String = __FUNCTION__,
    line: Int = __LINE__)
{
    if logError {
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    } else {
        #if DEBUG
            print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }
}
